package com.gp.dwt.controller;

import com.gp.dwt.base.Result;
import com.gp.dwt.service.MenuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author 小杜
 */
@RestController
@RequestMapping("/menu")
@Api(value = "菜单（功能）管理接口",tags = "菜单（功能）管理接口")
public class MenuController {

    @Autowired
    private MenuService menuService;

    @ApiOperation(value = "查看菜单列表")
    @PostMapping("/feign/menulist")
    public Result SuperFindAllStore(@RequestBody Map<String,String> map){
        return menuService.getMenu(Long.parseLong(map.get("flag")));
    }
}
